package utils

import (
	"fmt"

	"github.com/spf13/viper"

	"2106a-zg5/demo/goods/goods_srv/config"
)

func ViperInit() {
	v := viper.New()

	v.SetConfigName("./goods_debug_srv.yaml")
	err := v.ReadInConfig()
	if err != nil {
		fmt.Println(err)
	}
	v.Unmarshal(&config.Goods)
}
